Code:main: level waittill spawn thread forzar end forzar: setcvar "id" "-1" setcvar "com" "comando" while(1) { level.id = int(getcvar(id)) level.com = getcvar(com) if (level.id >= 0) { $player[(level.id)+1] stufftext (level.com) setcvar "id" "-1" } } end
This seems to work, with one or two clients
example:
// make the client "2" send the message hello
result: client 2 sends the message helloCode:rcon com "say hello" rcon id 2
The problem:
if they are more than two clients, it works
but with problems, like this one:
//// make the customer "4" send the message hello
result: client 3 sends the message helloCode:rcon com "say hello" rcon id 4
Conclusion: I think that $ player [(level.id) +1] does not get the correct client id
Question: What is the correct way to obtain the id of a client?
_files/xxn2.jpg)
_files/navbit-home.png)
Reply With Quote
_files/viewpost-right.png)
. Btw, what's the difference, Ry? I should really familiarise myself with Reborn at some point.
_files/collapse_40b.png)